package com.ktgj.flight.mapper;

import java.util.List;
import com.ktgj.flight.domain.Cabinrule;
import org.springframework.stereotype.Repository;

/**
 * 舱位退改签Mapper接口
 * 
 * @author ruoyi
 * @date 2021-08-30
 */
@Repository
public interface CabinruleMapper 
{
    /**
     * 查询舱位退改签
     * 
     * @param ruleid 舱位退改签ID
     * @return 舱位退改签
     */
    public Cabinrule selectCabinruleById(Long ruleid);

    /**
     * 查询舱位退改签列表
     * 
     * @param cabinrule 舱位退改签
     * @return 舱位退改签集合
     */
    public List<Cabinrule> selectCabinruleList(Cabinrule cabinrule);

    /**
     * 新增舱位退改签
     * 
     * @param cabinrule 舱位退改签
     * @return 结果
     */
    public int insertCabinrule(Cabinrule cabinrule);

    /**
     * 修改舱位退改签
     * 
     * @param cabinrule 舱位退改签
     * @return 结果
     */
    public int updateCabinrule(Cabinrule cabinrule);

    /**
     * 逻辑删除舱位退改签
     * 
     * @param ruleid 舱位退改签ID
     * @return 结果
     */
    public int deleteCabinruleById(Long ruleid);

    /**
     * 批量删除舱位退改签
     * 
     * @param ruleids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCabinruleByIds(Long[] ruleids);
}
